﻿using System;

namespace LightFactory.Extensions
{
    /// <summary>
    /// Use this attributes with class which you want to use with MetaBasedFactory
    /// </summary>
    [AttributeUsage(AttributeTargets.Class)]
    public class OverridesAttribute: Attribute
    {
        private Type _Type;

        /// <param name="type">
        /// Type which need to substitute
        /// </param>
        public OverridesAttribute(Type type)
        {
            _Type = type;
        }

        public Type OverridedType
        {
            get
            {
                return _Type;
            }
        }
    }
}
